package org.example.infrastructure.persistent.po;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 抽奖策略奖品明细配置-概率、规则
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class StrategyAward {
    //**自增id*/
    private Long id;
    //**抽奖策略id*/
    private Long strategyId;
    //**抽奖奖品id-内部流转使用*/
    private Integer awardId;
    //**抽奖奖品标题*/
    private String awardTitle;
    //**抽奖奖品副标题*/
    private String awardSubtitle;
    //**奖品库存总量*/
    private Integer awardCount;
    //**奖品库存剩余量*/
    private Integer awardCountSurplus;
    //**奖品中奖概率*/
    private BigDecimal awardRate;
    //**规则模型，rule配置的模型同步到此表*/
    private String ruleModels;
    //**排序*/
    private Integer sort;
    //**创建时间*/
    private Date createTime;
    //**更新时间*/
    private Date updateTime;
}
